package com.treasure.service.mapper;

import com.treasure.service.domain.TGainTtatistics;
import com.treasure.service.mybatis.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TGainTtatisticsMapper extends BaseMapper<TGainTtatistics> {

    public List<TGainTtatistics> getRankingList(@Param("thatDay") Long thatDay,
                                                @Param("nowDay") Long nowDay,
                                                @Param("dataType") Integer dataType);
    public TGainTtatistics getMyStatistics(@Param("userId") Long userId,
                                                @Param("thatDay") Long thatDay,
                                                @Param("nowDay") Long nowDay);
    public TGainTtatistics getMyTotalStatistics(@Param("userId") Long userId);
    public Long getMyRanking(@Param("amount") Long amount,
                                                @Param("thatDay") Long thatDay,
                                                @Param("nowDay") Long nowDay);

}